package com.ys;

import com.alipay.api.AlipayApiException;
import com.ys.utils.alipay.AliPayHandler;
import com.ys.utils.alipay.model.MsgInfo;
import org.junit.jupiter.api.Test;
import org.nutz.json.Json;

/**
 * @Author 但何非
 * @Date 2022/10/26 22:14
 * @ClassName: AliText
 * @Description:
 * @Version:
 */
public class AliText {
    @Test
    public void a(){
        AliPayHandler aliPayHandler = new AliPayHandler("");
        try {
            MsgInfo msgInfo = aliPayHandler.trans("2021003157650254",null);
            System.err.println(Json.toJson(msgInfo));
        } catch (AlipayApiException e) {
            throw new RuntimeException(e);
        }
    }
}
